package com.hm.pan.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.hm.pan.mapper.OfflineMapper;
import com.hm.pan.model.Offline;
import com.hm.pan.service.OfflineService;

@Service
public class OfflineServiceImpl implements OfflineService {

	@Resource
	private OfflineMapper offlineMapper;

	@Override
	public boolean insertOffline(Offline offline) throws Exception {
		return offlineMapper.insertOffline(offline);
	}

	@Override
	public Offline findByUrl(Offline offline) throws Exception {
		return offlineMapper.findByUrl(offline);
	}

}
